<?php
namespace app\admin\validate;
use think\Validate;

/**
 * Created by phpstrom.
 * User:wangyahe
 * Date: 2017/7/3
 * Time: 9:07
 */
class Admin extends Validate
{
	protected $rule=[
		'admin_username'=>'require',
		'admin_password'=>'require',
		'admin_code'=>'require|captcha',
	];
	protected $message=[
		'admin_username.require'=>'用户名不能为空',
		'admin_password.require'=>'密码不能为空',
		'admin_code.require'=>'验证码不能为空',
		'admin_code.captcha'=>'验证码不正确',
	];

}